// 时间秒数格式化
export default function secToTimeStringFormat(s) {
    let t;
    if (s > -1) {
        let hour = Math.floor(s / 3600);
        const min = Math.floor(s / 60) % 60;
        const sec = s % 60;
        const day = parseInt(hour / 24, 10);
        if (day > 0) {
            hour -= 24 * day;
            t = `${day}:${hour}:`;
        } else t = `${hour}:`;
        if (min < 10) { t += '0'; }
        t += `${min}:`;
        if (sec < 10) { t += '0'; }
        t += sec;
    }
    return t;
}
